﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace WS1.Models
{
	public class Customers
	{
        public int Customer_id { get; set; }
        public string first_name { get; set; }
        public string last_name { get; set; }
        public Nullable<int> age { get; set; }
        public string gender { get; set; }
        public string postal_code { get; set; }
        [Required(ErrorMessage ="邮箱是必须的")]
        [EmailAddress(ErrorMessage ="邮箱格式不正确")]
        public string email { get; set; }
        public string phone_number { get; set; }
        public string membership_status { get; set; }
        public Nullable<System.DateTime> join_date { get; set; }
        public Nullable<System.DateTime> last_purchase_date { get; set; }
        public decimal total_spending { get; set; }
        public Nullable<decimal> average_order_value { get; set; }
        public string frequency { get; set; }
        public string preferred_category { get; set; }
        public Nullable<bool> churned { get; set; }
    }
}